How to Access to the DUnit CVS Repository

$Id: cvs_access.html,v 1.1 2003/02/15 04:25:40 juanco Exp $

CygWin Installation

CygWin needs to be installed in order to have access to a working version of the Secure Shell protocol (SSH).

  1. Download and install CygWin from http://www.cygwin.com/. Make sure that the required programs, CVS, and SSH are selected for installation:
  2. Open Control Panel/System/Advanced/Environment Variables and define the following User variables:
  3. In the same dialog, make sure that the PATH environment variable includes the CygWin bin, usr\bin, and usr\local\bin directories.
  4. Open a Command Prompt (console window) and type:
    cvs --help

    you should get the CVS help output.

  5. Type the following SSH command:
    ssh -l mySourceforgeId dunit.sourceforge.net

    You should be prompted for a password. Press Ctrl+C to abort the connection.

CygWin Repository Setup

  1. Open a Command Prompt
  2. Change to the directory where the local copy of the repository should be created. For example:
    cd c:\home
  3. Type the following CVS command:
    cvs -d :ext:mySourceForgeId@cvs.dunit.sourceforge.net:/cvsroot/dunit checkout dunit

    Type your password when CVS requests it, and wait. CVS should start checking out a local copy of the repository to your hard drive (e.g. to c:\home\dunit).

WinCVS

  1. You can download a Windows GUI for CVS from http://www.wincvs.org. Go carefully through the preferences dialog after installation.
  2. You can combine WinCVS with a visual Diff engine. One of the options Component Software Diff for Windows available at http://www.componentsoftware.com/products/csdiff/. You'll have to set the options in the Admin/Preferences/WinCVS/External Diff dialog, and in the

WinCVS Repository Setup

This is an alternative way to set up a local copy of the CVS repository. If you successfully set up the local copy using CygWin, you should skip this step.

  1. Launch WinCVS
  2. Select Create/Checkout Module from the WinCVS menu.
  3. Fill in the "Checkout settings" tab like this:

     

  4. Leave the "Checkout options" and the "Merge options" tabs unchanged.
  5. Fill in the "General" tab as follows:
  6. Press the "Settings" button and write the complete path to the CygWin version of the SSH program.
  7. Leave the "Globals" tab unchanged.
  8. Press OK.
  9. Provide the password when requested by the console window (see below to learn how to avoid typing passwords).
  10. A local copy of the CVS repository will be checked out to the designated directory on your local hard drive.

Setting Up No-Password Access to the Repository

  1. Use SSH to create your key pairs:
    ssh-keygen -t rsa
  2. Copy the contents of the generated public key id_rsa.pub file to clipboard.
  3. Go to https://sourceforge.net/my/, select Account Options, scroll to the bottom of the page, paste your public key on the text box, and press the Update button.
  4. You should now be able to perform CVS operations on the DUnit CVS repository without providing a password.

~o~